<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<title></title>
		<link href="css/mui.min.css" rel="stylesheet" />
		<script src="js/mui.min.js"></script>
		<script src="js/app.js"></script>
		<script type="text/javascript" src="js/jquery-1.11.1.min.js"></script>
	</head>

	<body>
		<form class="mui-input-group" id="infoForm">
			<input type="hidden" name="thumpic" id="thumpicvalue" />
			<input type="hidden" name="top" id="topvalue" />
			<div class="mui-input-row">
				<label>标题</label>
				<input type="text" class="mui-input-clear" name="title" placeholder="请输入标题">
			</div>
			<div class="mui-input-row">
				<label>置顶</label>
				<div class="mui-switch mui-switch-mini" id="topinfo">
					<div class="mui-switch-handle"></div>
				</div>
			</div>
			<div class="mui-input-row">
				<label>缩略图</label>
				<div class="mui-switch mui-switch-mini" id="thumpic">
					<div class="mui-switch-handle"></div>
				</div>
			</div>
			<div>
				<textarea id="textarea" rows="15" placeholder="请输入内容" name="content"></textarea>
			</div>
			<div class="mui-button-row">
				<button type="button" class="mui-btn mui-btn-primary" onclick="add()">确认</button>
				<button type="button" class="mui-btn mui-btn-danger">取消</button>
			</div>
		</form>
	</body>
	<script>
		$.plusReady(function() {
					var self = plus.webview.currentWebview();
					var username = self.username;
					var token = self.token;
					console.info(username);
					console.info(token);
				}
	</script>

</html>